namespace Vec
{
	public class RectF
	{
		public float left;
		public float top;
		public float right;
		public float bottom;

		public RectF()
		{
		}

		public RectF(float left, float top, float right, float bottom)
		{
			set(left, top, right, bottom);
		}

		public void set(float l, float t, float r, float b)
		{
			this.left = l;
			this.right = r;
			this.top = t;
			this.bottom = b;
		}

		public RectF(RectF p)
		{
			set(p);
		}

		public void set(RectF p)
		{
			this.left = p.left;
			this.right = p.right;
			this.top = p.top;
			this.bottom = p.bottom;
		}

		public float width()
		{
			return right - left;
		}

		public float height()
		{
			return bottom - top;
		}
	}
}